import VueRouter from 'vue-router'

//导入对应组件
import home from "./components/tabbar/HomeContainer.vue"
import member from "./components/tabbar/MenberContainer.vue"
import search from "./components/tabbar/SearchContainer.vue"
import shopcar from  "./components/tabbar/ShopContainer.vue"


// 3. 创建路由对象
var router = new VueRouter({
    routes: [
        {path:"/",redirect:"/home"},
        {path:"/home",component:home},
        {path:"/member",component:member},
        {path:"/search",component:search},
        {path:"/shopcar",component:shopcar}
    ],
    linkActiveClass:"mui-active"//覆盖默认的路由高亮的类,默认的类叫做router-link-active
})

// 把路由对象暴露出去
export default router